package com.dcd.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
/*用户表*/
public class User implements Serializable {

    private int user_id;//用户id
    private String user_name;//用户名称
    private String user_password;//用户密码
    private String user_phone;//用户电话
    private String user_head_portrait_url;//头像图片
    private String user_personal_signature;//个人简介
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date user_register_date;//注册时间
}
